Skip to content

Queue Invites for Draft Processes#707

Open
scazan wants to merge 24 commits intodevfrom
invite-queue
Open

Queue Invites for Draft Processes#707
scazan wants to merge 24 commits intodevfrom
invite-queue

Conversation

@scazan
Copy link
Collaborator

@scazan scazan commented Mar 4, 2026

Queues invites for draft processes so that invites are sent on the launch of the process (with the exception of users who have ADMIN access).

Adds in notifications around this:
Screenshot 2026-03-06 at 17 12 56

Screenshot 2026-03-06 at 17 13 16 Screenshot 2026-03-06 at 17 35 21

@vercel
Copy link
Contributor

vercel bot commented Mar 4, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
app Ready Ready Preview Mar 6, 2026 5:51pm

Request Review

);

const { data: invites, isLoading: invitesLoading } =
trpc.profile.listProfileInvites.useQuery(
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just to note this is a temporary thing until guided UX is in place

// When publishing, send queued invite emails for this process instance's profile
const isPublishing =
status === ProcessStatus.PUBLISHED &&
existingInstance.status !== ProcessStatus.PUBLISHED;
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should this be checking for existingInstance.status === ProcessStatus.DRAFT?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants